package com.kede.api.order.service;

import com.kede.api.order.controller.po.CreatePackageOrderPo;
import com.kede.api.order.controller.po.RefusePackageOrderPo;
import com.kede.api.order.controller.po.SurePackageOrderPo;
import com.kede.pojo.PackageOrderStatus;
import com.kede.pojo.PagePO;
import com.kede.pojo.ResHttp;

/**
 * @Author:Pr.li
 * @Date: create in 2023/9/17 14:54
 */
public interface IPackageManageService {
    /**
     * 创建包裹订单
     * @param packageOrderPo
     * @return
     */
    ResHttp createPackageOrder(CreatePackageOrderPo packageOrderPo);

    ResHttp getPackageOrderList(PagePO pagePO, Integer cerId, Integer isSrc, PackageOrderStatus status);

    /**
     * 获取包裹订单的id
     * @param id
     * @return
     */
    ResHttp getPackageOrderDetail(Integer id);

    /**
     * 签收
     * @param surePackageOrderPo
     * @return
     */
    ResHttp surePackageOrder(SurePackageOrderPo surePackageOrderPo);

    /**
     * 拒签
     * @param refusePackageOrderPo
     * @return
     */
    ResHttp refusePackageOrder(RefusePackageOrderPo refusePackageOrderPo);

    /**
     * 删除包裹订单
     * @param id
     * @return
     */
    ResHttp delOrder(Integer id);
}
